﻿@model IEnumerable<CRMnewm.AccountsNabor>

@{
    ViewBag.Title = "Аккаунты";
}

<h2>Аккаунты</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="datatable">
    <tr>
@*        <th>
            @Html.DisplayNameFor(model => model.Accounts_id)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.Family)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Surname)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Sex)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Country)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Region)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.E_mail)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Web_site)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Osebe)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
@*        <td>
            @Html.DisplayFor(modelItem => item.Accounts_id)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Family)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Surname)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Sex)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Country)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Region)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.E_mail)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Web_site)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Osebe)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new {  id=item.Accounts_id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Accounts_id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Accounts_id  })
        </td>
    </tr>
}

</table>
